/*
 * Copyright (C) 2016 ~ 2018 Deepin Technology Co., Ltd.
 *               2016 ~ 2018 zhangbingyi
 *
 * Author:     zhangbingyi<zhangbingyi@uniontech.com>
 *
 * Maintainer: zhangbingyi<zhangbingyi@uniontech.com>
 *             zhangbingyi<zhangbingyi@uniontech.com>
 *             zhangbingyi<zhangbingyi@uniontech.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#include "common.h"
#include "common/hpolicykithelper.h"

#include <QObject>

//using namespace PolkitQt1;

class PolicyKitHelper : public HPolicyKitHelper
{
    Q_OBJECT
public:
    explicit PolicyKitHelper();
    ~PolicyKitHelper();

Q_SIGNALS:
    // 通知去改变连接记录开关
    void notifyChangeIsbSaveRecord();
    // 通知去改变usb限制模式
    void notifyChangeLimitationModel(const QString &limitModel);
    // 通知去添加到白名单
    void notifyAddUsbConnectionWhiteLst(const UsbConnectionInfo &info);
    // 通知去清除usb连接记录
    void notifyClearUsbConnectionLog();
    // 权限校验完成
    void checkAuthorizationFinished();

public Q_SLOTS:
    // 确认是否改变连接记录开关
    void confirmChangeIsbSaveRecord();
    // 确认选择usb限制模式
    void confirmSelectLimitationModel(const QString &limitModel);
    // 确认添加到白名单
    void confirmAddUsbConnectionWhiteLst(const UsbConnectionInfo &info);
    // 确认是否清除usb连接记录
    void confirmClearUsbConnectionLog();

};
